package com.project.modules.redEnvelope.constant;

public class Constant {


    public static final int RED_ENVELOPE_DURING_SECONDS = 10;
    public static final int SECONDS_OF_DAY = 60 * 60 * 24;

    // 创建红包，将红包拆分情况放入 list
    public static final String RED_ENVELOPE_CREATE_KEY = "red-envelope-create:";
    // 报名人数缓存
    public static final String RED_ENVELOPE_CREATE_COUNT = "red-envelope-create-count:";
    // 抢红包得分的 hash，key为用户id，value为得分
    public static final String RED_ENVELOPE_SCORE = "red-envelope-score:";
    // 查询抢红包金额的分布式锁
    public static final String RED_ENVELOPE_LOCK = "red-envelope-lock:";
    // 用户抢到红包金额的hash，key为用户id，value为金额
    public static final String RED_ENVELOPE_CONSUME_KEY = "red-envelope:consume:";

}
